// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import './myUtils/lib-flexible';
import './myUtils/common.css';
import router from './router'
import store from './vuex'
import App from './App'
import axios from 'axios'
import Icon from 'vue-svg-icon/Icon.vue';

import { AlertPlugin,ToastPlugin } from 'vux'


Vue.use(ToastPlugin)
Vue.use(AlertPlugin);

Vue.component('icon', Icon);



// 或者umd方式
// 引入构建的js文件
// Vue.use(vuxAlertPlugin)
FastClick.attach(document.body);

Vue.config.productionTip = false;
axios.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8'
Vue.prototype.$http = axios;

/* eslint-disable no-new */
new Vue({
    store,
    router,
    render: h => h(App)
}).$mount('#app-box');